<?php

// +----------------------------------------------------------------------
// | 图片文件管理
// +----------------------------------------------------------------------
// | Copyright (c) 2015-2024 http://www.yicmf.com, All rights reserved.
// +----------------------------------------------------------------------
// | Author: 微尘 <yicmf@qq.com>
// +----------------------------------------------------------------------

namespace app\controller\api\v3;

use app\event\file\Image as ImageEvent;
use app\model\file\Image as ImageModel;

class Image extends Common
{


    /* 图片上传 */
    public function upload()
    {
        $image = new ImageEvent();
        $data = $image->upload($this->request->post(), $this->request->file('file'), $this->user);
        return $this->autoAjax($data);
    }


}
